home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / DefineSprite_297 / frame_40 / DoAction.as
Encoding:
Text File  |  2007-01-08  |  13.2 KB  |  368 lines

  1. var ┬º\x01┬º = 705;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 705)
  5.    {
  6.       set("\x01",eval("\x01") - 549);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 775)
  10.    {
  11.       set("\x01",eval("\x01") + 170);
  12.       ┬º┬ºpush(true);
  13.    }
  14.    else if(eval("\x01") == 910)
  15.    {
  16.       set("\x01",eval("\x01") - 202);
  17.       ┬º┬ºpush(true);
  18.    }
  19.    else
  20.    {
  21.       if(eval("\x01") == 528)
  22.       {
  23.          set("\x01",eval("\x01") + 247);
  24.          ┬º┬ºpush(┬º┬ºpop() / ┬º┬ºpop());
  25.          break;
  26.       }
  27.       if(eval("\x01") == 218)
  28.       {
  29.          set("\x01",eval("\x01") + 188);
  30.          break;
  31.       }
  32.       if(eval("\x01") != 406)
  33.       {
  34.          if(eval("\x01") == 774)
  35.          {
  36.             set("\x01",eval("\x01") - 287);
  37.             ┬º┬ºpop();
  38.          }
  39.          else
  40.          {
  41.             if(eval("\x01") == 156)
  42.             {
  43.                set("\x01",eval("\x01") + 62);
  44.                if(┬º┬ºpop())
  45.                {
  46.                   set("\x01",eval("\x01") + 188);
  47.                }
  48.                continue;
  49.             }
  50.             if(eval("\x01") == 202)
  51.             {
  52.                set("\x01",eval("\x01") + 112);
  53.                break;
  54.             }
  55.             if(eval("\x01") == 354)
  56.             {
  57.                set("\x01",eval("\x01") + 556);
  58.                ┬º┬ºpush(mbord(┬º┬ºpop() * ┬º┬ºpop()));
  59.                break;
  60.             }
  61.             if(eval("\x01") == 709)
  62.             {
  63.                set("\x01",eval("\x01") - 408);
  64.                ┬º┬ºpush(true);
  65.                continue;
  66.             }
  67.             if(eval("\x01") == 487)
  68.             {
  69.                set("\x01",eval("\x01") + 76);
  70.                ┬º┬ºpush(true);
  71.                continue;
  72.             }
  73.             if(eval("\x01") == 301)
  74.             {
  75.                set("\x01",eval("\x01") - 99);
  76.                if(┬º┬ºpop())
  77.                {
  78.                   set("\x01",eval("\x01") + 112);
  79.                }
  80.                continue;
  81.             }
  82.             if(eval("\x01") == 945)
  83.             {
  84.                set("\x01",eval("\x01") - 171);
  85.                if(┬º┬ºpop())
  86.                {
  87.                   set("\x01",eval("\x01") - 287);
  88.                }
  89.                continue;
  90.             }
  91.             if(eval("\x01") == 563)
  92.             {
  93.                set("\x01",eval("\x01") - 542);
  94.                if(┬º┬ºpop())
  95.                {
  96.                   set("\x01",eval("\x01") + 688);
  97.                }
  98.                continue;
  99.             }
  100.             if(eval("\x01") == 87)
  101.             {
  102.                set("\x01",eval("\x01") + 267);
  103.                if(┬º┬ºpop())
  104.                {
  105.                   set("\x01",eval("\x01") + 556);
  106.                }
  107.                continue;
  108.             }
  109.             if(eval("\x01") == 708)
  110.             {
  111.                set("\x01",eval("\x01") - 180);
  112.                if(┬º┬ºpop())
  113.                {
  114.                   set("\x01",eval("\x01") + 247);
  115.                }
  116.                continue;
  117.             }
  118.             if(eval("\x01") == 21)
  119.             {
  120.                set("\x01",eval("\x01") + 688);
  121.                ┬º┬ºpush(delete ┬º┬ºpop());
  122.                break;
  123.             }
  124.             if(eval("\x01") != 314)
  125.             {
  126.                break;
  127.             }
  128.             set("\x01",eval("\x01") + 617);
  129.             stop();
  130.             var indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  131.             var indx2 = Number(Number(_root.gameInfo.currentGame.carType));
  132.             var indx3 = Number(Number(_root.gameInfo.currentGame.carType2));
  133.             trace(">>>>>>>>>>>>>>>>>> " + _root.gameInfo.currentGame.carType);
  134.             beginPos = this["cn_" + indx]._x;
  135.             dx2 = 60;
  136.             x0 = 70;
  137.             x0_2 = 295;
  138.             go = function()
  139.             {
  140.                getUrl("http://gamezhero.com/online-games/sports-games/hummerrallychampionship-arcade.html?utm_campaign=hrc&utm_source=hrc&utm_medium=play_lock_level_2in1", "_blank");
  141.             };
  142.             lock1.onPress = go;
  143.             lock2.onPress = go;
  144.             lock3.onPress = go;
  145.             lock4.onPress = go;
  146.             lock5.onPress = go;
  147.             if(String(_url).indexOf("files.gamezhero.com/online/hummerrallychampionship/hummerrallychampionship.swf") == -1)
  148.             {
  149.                lock1._visible = 0;
  150.                lock2._visible = 0;
  151.                lock3._visible = 1;
  152.                lock4._visible = 1;
  153.                lock5._visible = 1;
  154.             }
  155.             else
  156.             {
  157.                lock1._visible = 0;
  158.                lock2._visible = 0;
  159.                lock3._visible = 0;
  160.                lock4._visible = 0;
  161.                lock5._visible = 0;
  162.             }
  163.             cn_1.onRollOver = function()
  164.             {
  165.                _root.soundArc2.playSound("mouseOver2",0);
  166.             };
  167.             cn_1.onPress = function()
  168.             {
  169.                _root.soundArc2.playSound("mouseClick",0);
  170.                _root.gameInfo.currentGame.level = 0;
  171.                indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  172.                startBegun(indx);
  173.                pointUpdate(indx);
  174.             };
  175.             cn_2.onRollOver = function()
  176.             {
  177.                _root.soundArc2.playSound("mouseOver2",0);
  178.             };
  179.             cn_2.onPress = function()
  180.             {
  181.                _root.soundArc2.playSound("mouseClick",0);
  182.                _root.gameInfo.currentGame.level = 1;
  183.                indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  184.                startBegun(indx);
  185.                pointUpdate(indx);
  186.             };
  187.             cn_3.onRollOver = function()
  188.             {
  189.                _root.soundArc2.playSound("mouseOver2",0);
  190.             };
  191.             cn_3.onPress = function()
  192.             {
  193.                _root.soundArc2.playSound("mouseClick",0);
  194.                _root.gameInfo.currentGame.level = 2;
  195.                indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  196.                startBegun(indx);
  197.                pointUpdate(indx);
  198.             };
  199.             cn_4.onRollOver = function()
  200.             {
  201.                _root.soundArc2.playSound("mouseOver2",0);
  202.             };
  203.             cn_4.onPress = function()
  204.             {
  205.                _root.soundArc2.playSound("mouseClick",0);
  206.                _root.gameInfo.currentGame.level = 3;
  207.                indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  208.                startBegun(indx);
  209.                pointUpdate(indx);
  210.             };
  211.             cn_5.onRollOver = function()
  212.             {
  213.                _root.soundArc2.playSound("mouseOver2",0);
  214.             };
  215.             cn_5.onPress = function()
  216.             {
  217.                _root.soundArc2.playSound("mouseClick",0);
  218.                _root.gameInfo.currentGame.level = 4;
  219.                indx = Number(Number(_root.gameInfo.currentGame.level) + 1);
  220.                startBegun(indx);
  221.                pointUpdate(indx);
  222.             };
  223.             startBegun = function(indx)
  224.             {
  225.                beginPos = this["cn_" + indx]._x;
  226.                begun.onEnterFrame = function()
  227.                {
  228.                   begun._x -= (begun._x - beginPos) / 5;
  229.                   if(Math.abs(begun._x - beginPos) < 0.5)
  230.                   {
  231.                      delete begun.onEnterFrame;
  232.                   }
  233.                };
  234.             };
  235.             startBegun2 = function(indx2)
  236.             {
  237.                beginPos2 = x0 + dx2 * indx2;
  238.                begun2.onEnterFrame = function()
  239.                {
  240.                   begun2._x -= (begun2._x - beginPos2) / 5;
  241.                   if(Math.abs(begun2._x - beginPos2) < 0.5)
  242.                   {
  243.                      delete begun2.onEnterFrame;
  244.                   }
  245.                };
  246.             };
  247.             startBegun3 = function(indx3)
  248.             {
  249.                beginPos3 = x0_2 + dx2 * indx3;
  250.                begun3.onEnterFrame = function()
  251.                {
  252.                   begun3._x -= (begun3._x - beginPos3) / 5;
  253.                   if(Math.abs(begun3._x - beginPos3) < 0.5)
  254.                   {
  255.                      delete begun3.onEnterFrame;
  256.                   }
  257.                };
  258.             };
  259.             startBegun(indx);
  260.             startBegun2(indx2);
  261.             startBegun3(indx3);
  262.             pointUpdate(indx);
  263.             action;
  264.             nextBtn.btn.onRollOver = function()
  265.             {
  266.                _root.soundArc2.playSound("mouseOver2",0);
  267.             };
  268.             nextBtn.btn.onPress = function()
  269.             {
  270.                _root.soundArc2.playSound("mouseClick",0);
  271.                delete begun.onEnterFrame;
  272.                action = 0;
  273.                play();
  274.             };
  275.             nextBtn.btn2.onRollOver = function()
  276.             {
  277.                _root.soundArc2.playSound("mouseOver2",0);
  278.             };
  279.             nextBtn.btn2.onPress = function()
  280.             {
  281.                _root.soundArc2.playSound("mouseClick",0);
  282.                delete begun.onEnterFrame;
  283.                action = 1;
  284.                play();
  285.             };
  286.             player1.car1.onRollOver = function()
  287.             {
  288.                _root.soundArc2.playSound("mouseOver2",0);
  289.             };
  290.             player1.car1.onPress = function()
  291.             {
  292.                _root.soundArc2.playSound("mouseClick",0);
  293.                indx2 = 0;
  294.                _root.gameInfo.currentGame.carType = 0;
  295.                _level0.localTopScore.data.carType = _root.gameInfo.currentGame.carType;
  296.                startBegun2(indx2);
  297.             };
  298.             ┬º┬ºpush(player1.car2);
  299.             ┬º┬ºpush("onRollOver");
  300.          }
  301.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  302.          eval(┬º┬ºconstant(54))[┬º┬ºconstant(59)][┬º┬ºconstant(19)] = function()
  303.          {
  304.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(33),0);
  305.             set(┬º┬ºconstant(5),1);
  306.             set(┬º┬ºconstant(45),eval(┬º┬ºconstant(15)) + eval(┬º┬ºconstant(14)) * (eval(┬º┬ºconstant(5)) - 1));
  307.             _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(6)] = 1;
  308.             eval(┬º┬ºconstant(56))[┬º┬ºconstant(57)][┬º┬ºconstant(58)][┬º┬ºconstant(6)] = _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(6)];
  309.             ┬º┬ºconstant(44)(eval(┬º┬ºconstant(5)));
  310.          };
  311.          eval(┬º┬ºconstant(54))[┬º┬ºconstant(60)][┬º┬ºconstant(29)] = function()
  312.          {
  313.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(30),0);
  314.          };
  315.          eval(┬º┬ºconstant(54))[┬º┬ºconstant(60)][┬º┬ºconstant(19)] = function()
  316.          {
  317.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(33),0);
  318.             set(┬º┬ºconstant(5),2);
  319.             _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(6)] = 2;
  320.             eval(┬º┬ºconstant(56))[┬º┬ºconstant(57)][┬º┬ºconstant(58)][┬º┬ºconstant(6)] = _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(6)];
  321.             ┬º┬ºconstant(44)(eval(┬º┬ºconstant(5)));
  322.          };
  323.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(55)][┬º┬ºconstant(29)] = function()
  324.          {
  325.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(30),0);
  326.          };
  327.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(55)][┬º┬ºconstant(19)] = function()
  328.          {
  329.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(33),0);
  330.             set(┬º┬ºconstant(7),0);
  331.             _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)] = 0;
  332.             eval(┬º┬ºconstant(56))[┬º┬ºconstant(57)][┬º┬ºconstant(58)][┬º┬ºconstant(8)] = _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)];
  333.             ┬º┬ºconstant(47)(eval(┬º┬ºconstant(7)));
  334.          };
  335.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(59)][┬º┬ºconstant(29)] = function()
  336.          {
  337.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(30),0);
  338.          };
  339.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(59)][┬º┬ºconstant(19)] = function()
  340.          {
  341.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(33),0);
  342.             set(┬º┬ºconstant(7),1);
  343.             set(┬º┬ºconstant(45),eval(┬º┬ºconstant(15)) + eval(┬º┬ºconstant(14)) * (eval(┬º┬ºconstant(5)) - 1));
  344.             _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)] = 1;
  345.             eval(┬º┬ºconstant(56))[┬º┬ºconstant(57)][┬º┬ºconstant(58)][┬º┬ºconstant(8)] = _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)];
  346.             ┬º┬ºconstant(47)(eval(┬º┬ºconstant(7)));
  347.          };
  348.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(60)][┬º┬ºconstant(29)] = function()
  349.          {
  350.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(30),0);
  351.          };
  352.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(60)][┬º┬ºconstant(19)] = function()
  353.          {
  354.             _root[┬º┬ºconstant(31)][┬º┬ºconstant(32)](┬º┬ºconstant(33),0);
  355.             set(┬º┬ºconstant(7),2);
  356.             _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)] = 2;
  357.             eval(┬º┬ºconstant(56))[┬º┬ºconstant(57)][┬º┬ºconstant(58)][┬º┬ºconstant(8)] = _root[┬º┬ºconstant(2)][┬º┬ºconstant(3)][┬º┬ºconstant(8)];
  358.             ┬º┬ºconstant(47)(eval(┬º┬ºconstant(7)));
  359.          };
  360.          eval(┬º┬ºconstant(54))[┬º┬ºconstant(62)][┬º┬ºconstant(63)](0);
  361.          eval(┬º┬ºconstant(61))[┬º┬ºconstant(62)][┬º┬ºconstant(63)](1);
  362.          break;
  363.       }
  364.       set("\x01",eval("\x01") - 319);
  365.       ┬º┬ºpush(true);
  366.    }
  367. }
  368.